package com.gxa.logistics.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("bill")
public class Bill {

    @TableId(value = "bill_id",type = IdType.AUTO)
    private Integer billId;

    @TableField("material_id")
    private Integer materialId;

    @TableField("op_type")
    private String operationType;

    @TableField("op_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date operationTime;

    @TableField("op_plan_type")
    private String opPlanType;

    @TableField("project_id")
    private String projectId;

    @TableField("project_name")
    private String projectName;

    @TableField("property_id")
    private String propertyId;

    @TableField("buy_order_id")
    private String buyOrderId;

    @TableField("op_num")
    private String operationNum;

    @TableField("op_weight")
    private String operationWeight;

    @TableField("storage")
    private String storage;

    @TableField("storage_location")
    private String storageLocation;

    @TableField("end_storage")
    private String endStorage;

    @TableField("order_id")
    private String orderId;

    @TableField("situation")
    private String situation;

}
